package org.beetl.json.loc;

import org.beetl.json.Location;
import org.beetl.json.OutputNode;

public class IndexLocation extends Location {
	Object ref ;
	String policy;
	public IndexLocation(Object ref,String policy) {		
		
		this.ref = ref;
		this.policy = policy;
		
	}
	
	


	@Override
	public boolean match(OutputNode node,Class type, String field) {		
		node.addIndexLocations(this);
		return false;
	}
	
	


	public Object getRef() {
		return ref;
	}


	public void setRef(Object ref) {
		this.ref = ref;
	}


	public String getPolicy() {
		return policy;
	}


	public void setPolicy(String policy) {
		this.policy = policy;
	}
	
	

}
